var tabs = null;
var yqlHandler = new YQLHandler();
var options = new Options();

function Init() {
	tabs = new Tabs();
	
	var request = new YQLRequest(QUERY.TREND_LOCATION, new LocationParser());
	request.SetProperty('woeid', '1');
	tabs.CreateTab("global_tab", "Global", request);
	
	var request = new YQLRequest(QUERY.TREND_LOCATION, new LocationParser());
	request.SetProperty('woeid', localStorage['tt_location']);
	tabs.CreateTab("local_tab", "Local", request);
	
	var request = new YQLRequest(QUERY.TREND_DAILY, new DateParser());
	tabs.CreateTab("daily_tab", "Daily", request);
	
	var request = new YQLRequest(QUERY.TREND_WEEKLY, new DateParser());
	tabs.CreateTab("weekly_tab", "Weekly", request);
};